package routers

import "github.com/gin-gonic/gin"

// RegisterUserRoutes 注册用户管理路由
func (pr *ProtectedRoutes) RegisterUserRoutes(protected *gin.RouterGroup) {
	// 用户管理
	users := protected.Group("/user")
	{
		users.GET("", pr.userController.GetUserList)
		users.GET("/:id", pr.userController.GetUserByID)
		users.POST("", pr.userController.CreateUser)
		users.PUT("/:id", pr.userController.UpdateUser)
		users.DELETE("/:id", pr.userController.DeleteUser)
	}
}
